// router/modules/proectAdmin.js
import layout from "@/components/layout/layout.vue";
const project = [
	{
      path: '/project_admin',
	  component: layout,
	  redirect:"/project_admin/create",
	  children: [
	  	{
	  		path:"create",
	  		name:"create",
	  		meta:{title:"新建项目"},
			redirect:"/project_admin/create/select_project",
	  		component:()=>import("@/pages/create-project/create-project.vue"),
			children:[
				{
					path:"select_project",
					name:"select_project",
					meta:{title:"选择项目"},
					component:()=>import("@/pages/select-project/select-project.vue")
				},
				{
					path:"select_module",
					name:"select_module",
					meta:{title:"选择项目所需模块"},
					component:()=>import("@/pages/select-project-module/select-project-module.vue")
				},
				{
					path:"confirm_partner",
					name:"confirm_partner",
					meta:{title:"确认队友"},
					component:()=>import("@/pages/confirm-partner/confirm-partner.vue")
				},
				{
					path:"finish_create",
					name:"finish_create",
					meta:{title:"完成创建提交"},
					component:()=>import("@/pages/finish-create/finish-create.vue")
				}
			]
	  	},
		{
			path:"underway",
			name:"underway",
			meta:{title:"进行中项目"},
			component:()=>import("@/pages/underway-project/underway-project.vue") 
		},
		{
			path:"history",
			name:"history",
			meta:{title:"进行中项目"},
			component:()=>import("@/pages/history-project/history-project.vue") 
		}
	  ]
    }
]
export default project